package com.easa.dao;

import com.easa.entity.ShowTeacherMsg;
import com.easa.entity.Teachermsg;

import java.util.List;

public interface TeacherMsgDao {
    ShowTeacherMsg findTeacherMsgByid(String tid);
    void setConditionsByTid(String name, String viewClassify, String checkWay, String semesterId, String weekid);
    int insertTeacherMsg(Teachermsg teachermsg);
    int loginValidate(String userId, String password);
    Boolean updateTeacherMsg(Teachermsg teachermsg);
    int validateAdmin(String userId, String pass);
    List<Teachermsg> searchTeacherMsg(String tname);
    int addTeacherMsg(Teachermsg teachermsg);
    Teachermsg findTeacherDetailByAdmin(String tid);
    int updateTeacherMsgBySAdmin(Teachermsg teachermsg);
    int updateTeacherMsgByAdmin(Teachermsg teachermsg);
    boolean resetPassword(String tid);
    int modifyPassword(String tid, String newPassword);
}
